package com.ruoyi.yl.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.ruoyi.yl.domain.vo.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @Author: linKe
 * @Date: 2022/2/20 15:44
 * @FileName: YlPriceAdjust
 * @version: 1.0
 * @Description: 药品调价信息表
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Data
@TableName("yl_price_adjust_lin")
public class YlPriceAdjust extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 药品id
     * 关联药品表
     */
    private Long drug;

    /**
     * 之前的零售价
     */
    private BigDecimal oldSalePrice;

    /**
     * 差价
     */
    private BigDecimal differ;

    /**
     * 比例
     */
    private BigDecimal rate;


}
